package com.ktjy.mapper.user;

import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface SysUserMapper {

//    public List<SysUser> selectList(@Param("realName")String realName, @Param("roleId")Integer roleId);
    List<SysUser> selectList(@Param("realName")String realName, @Param("roleId")Integer roleId);
    List<SysUser> selectListByChoose(@Param("realName")String realName, @Param("roleId")Integer roleId,@Param("account") String account, @Param("createdTime")Date createdTime);

    /**
     * 查用户列表信息
     * @param roleIds
     * @return
     */
    List<SysUser> getUserByRoleIdArray(Integer[] roleIds);

    public List<SysUser> getUserByRoleIdList(List<Integer> roleList);

    public List<SysUser> getUserByRoleIdMap(Map<String, Object> roleMap);

    public int update(SysUser sysUser);

    public List<SysUser> selectPageList(@Param("realName")String realName,@Param("roleId")Integer roleId,
                                        @Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);
}
